package com.guigu.community.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("users")
public class Users {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username;

    
    private String password;

    
    private String phone;

    
    private String email;

    
    private String avatar;

    @TableField("Is_businesses ")
    private Integer isBusinesses;

    @TableField("Is_vendor")
    private Integer isVendor;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("created_at")
    private Date createdAt;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("updated_at")
    private Date updatedAt;

    
    private String remark;

    @TableField(exist = false)
    private Suppliers suppliers;

    @TableField(exist = false)
    private Merchants merchants;


  }